"""一类事物多种形态，依赖于继承"""
class humen:
    def eat(self):
        print("吃饭")
        
class chinahumen(humen):
    def eat(self):
        print("用筷子吃饭")
        
class ushumen(humen):
    def eat(self):
        print("用叉子吃饭")
        
class indiahumen(humen):
    def eat(self):
        print("用手吃饭")
        
def someone_eat(someone :humen):  #:humen属于语法堂，一般给程序员看的，显示什么类型，一般为父类或类型
    someone.eat()
    
#创建对象
human = humen()
zh = chinahumen()
us = ushumen()
ina = indiahumen()

someone_eat(human)
someone_eat(zh)
someone_eat(us)
someone_eat(ina)